<?php
declare (strict_types=1);

namespace app\admin\lib;

/**
 * | Notes：接口错误码
 * +----------------------------------------------------------------------
 * | PHP Version 7.2+
 * +----------------------------------------------------------------------
 * | Copyright (c) 2011-2020 https://www.xxq.com.cn, All rights reserved.
 * +----------------------------------------------------------------------
 * | Author: 和好 <389123492@qq.com>
 * +----------------------------------------------------------------------
 * | Date: 2020/4/18 21:47
 * +----------------------------------------------------------------------
 */
class HttpError
{
    /**
     * API通用错误码
     * 错误码
     * 错误提示
     * 状态码
     */
    const USER_NOT_EXIST         = [1, '用户不存在', 200];
    const NO_TOKEN_ERR           = [400, '缺少Token参数', 200];
    const TOKEN_ERR              = [400, 'Token验证失败', 200];
    const TOKEN_ERR_ADMIN        = [401, 'Token验证失败', 200];
    const RULE_ERROR             = [402, '没有权限访问', 200];

}
